package com.easyexcel.demo.write.dataVo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import lombok.Data;

/**
 * @Date: 2024-06-08 17:43
 * @Description TODO 导出数据类
 */
@Data
public class CityExportDTO {

    @ExcelIgnore
    private String cityCode;
    @ExcelProperty("地市")
    @ColumnWidth(20)
    private String cityName;
    @ExcelIgnore
    private String countyCode;
    @ExcelProperty("区县")
    @ColumnWidth(20)
    private String countyName;
    @ExcelProperty("学校名称")
    @ColumnWidth(30)
    private String schoolName;
    @ExcelProperty("状态")
    @ColumnWidth(20)
    private String status;
    @ExcelProperty("人数")
    @ColumnWidth(20)
    private String num;
    @ExcelProperty("地市总人数")
    @ColumnWidth(30)
    private String totalNum;

    public CityExportDTO(String cityCode, String cityName, String countyCode, String countyName, String schoolName, String status, String num, String totalNum) {
        this.cityCode = cityCode;
        this.cityName = cityName;
        this.countyCode = countyCode;
        this.countyName = countyName;
        this.schoolName = schoolName;
        this.status = status;
        this.num = num;
        this.totalNum = totalNum;
    }
}